﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ProjetIntegrationMobilite
{
    public class BoardsListResponse
    {
        [XmlArrayItem("board")]
        public List<CompactBoardListModel> listBoards = new List<CompactBoardListModel>();

        public class CompactBoardListModel
        {
            [XmlAttribute()]
            public DateTime creation_date;
            [XmlAttribute()]
            public String name;
            [XmlAttribute()]
            public String owner;
            [XmlAttribute()]
            public String invitee;
            [XmlAttribute()]
            public String status;
            [XmlAttribute()]
            public String url;

            public CompactBoardListModel() { }
            public CompactBoardListModel(Board u)
            {
                this.creation_date = u.creation_date;
                this.name = u.Name;
                this.owner = u.owner;
                this.invitee = u.invite;
                this.status = u.status;
                this.url = u.url;
            }         
        }
    }
}
